<form class="form-horizontal" method="post" action="/user/profile">
  <div class="form-group">
    <label class="col-sm-2 control-label"><i class="fa fa-fw text-red">*</i>服务中心</label>
    <div class="col-sm-4">
      <?php if($account -> service_user_id != 0) { ?>
        <input type="text" class="form-control" value="<?php echo $s_account -> real_name . $s_account -> user_code; ?>" disabled>
      <?php } else { ?>
        <input type="text" class="form-control" value="无" disabled>
      <?php } ?>
    </div>

    <label class="col-sm-2 control-label"><i class="fa fa-fw text-red">*</i>会员编号</label>
    <div class="col-sm-4"><input type="number" value="<?php echo $account -> user_code ?>" class="form-control" disabled></div>
  </div>
  
  <div class="form-group">
    <label class="col-sm-2 control-label"><i class="fa fa-fw text-red">*</i>真实姓名</label>
    <div class="col-sm-4"><input type="text" name="real_name" value="<?php echo $account -> real_name; ?>" class="form-control" required></div>

    <label class="col-sm-2 control-label"><i class="fa fa-fw text-red">*</i>手机号码</label>
    <div class="col-sm-4"><input type="text" name="phone" value="<?php echo $account -> phone; ?>" class="form-control" required></div>
  </div>

  <div class="form-group">
    <label class="col-sm-2 control-label">登录密码</label>
    <div class="col-sm-4"><input type="password" name="password" class="form-control" placeholder="不填写，不修改"></div>

    <label class="col-sm-2 control-label">确认登录密码</label>
    <div class="col-sm-4"><input type="password" name="confirm_password" class="form-control" placeholder="不填写，不修改"></div>
  </div>

  <div class="form-group">
    <label class="col-sm-2 control-label">二级密码</label>
    <div class="col-sm-4"><input type="password" name="safe_password" class="form-control" placeholder="不填写，不修改"></div>

    <label class="col-sm-2 control-label">确认二级密码</label>
    <div class="col-sm-4"><input type="password" name="confirm_safe_password" class="form-control" placeholder="不填写，不修改"></div>
  </div>

  <div class="form-group">
    <?php if($account -> promotion_user_id != 0) { ?>
      <label class="col-sm-2 control-label"><i class="fa fa-fw text-red">*</i>推荐人编号</label>
      <div class="col-sm-4"><input type="text" value="<?php echo $p_account -> user_code ?>" class="form-control" disabled></div>

      <label class="col-sm-2 control-label">推荐人姓名</label>
      <div class="col-sm-4"><input type="text" value="<?php echo $p_account -> real_name ?>" class="form-control" disabled></div>
    <?php } else { ?>
      <label class="col-sm-2 control-label"><i class="fa fa-fw text-red">*</i>推荐人编号</label>
      <div class="col-sm-4"><input type="text" value="无" class="form-control" disabled></div>

      <label class="col-sm-2 control-label">推荐人姓名</label>
      <div class="col-sm-4"><input type="text" value="无" class="form-control" disabled></div>
    <?php } ?>
  </div>

  <div class="form-group">
    <?php if($account -> node_user_id != 0) { ?>
      <label class="col-sm-2 control-label"><i class="fa fa-fw text-red">*</i>接点人编号</label>
      <div class="col-sm-4"><input type="text" value="<?php echo $n_account -> user_code ?>" class="form-control" disabled></div>

      <label class="col-sm-2 control-label">接点人姓名</label>
      <div class="col-sm-4"><input type="text" value="<?php echo $n_account -> real_name ?>" class="form-control" disabled></div>
    <?php } else { ?>
      <label class="col-sm-2 control-label"><i class="fa fa-fw text-red">*</i>接点人编号</label>
      <div class="col-sm-4"><input type="text" value="无" class="form-control" disabled></div>

      <label class="col-sm-2 control-label">接点人姓名</label>
      <div class="col-sm-4"><input type="text" value="无" class="form-control" disabled></div>
    <?php } ?>
  </div>

  <div class="form-group">
    <label class="col-sm-2 control-label"><i class="fa fa-fw text-red">*</i>选择市场</label>
    <div class="col-sm-4">
      <select class="form-control" disabled>
        <?php if($account -> node_side == 1) { ?>
        <option>左区</option>
        <?php } else { ?>
        <option>右区</option>
        <?php } ?>
      </select>
    </div>
  </div>

  <button type="submit" class="btn btn-primary">确认修改</button>
</form>